/**
 * Copyright (c) 2016-2020 qar All rights reserved.
 * <p>
 * https://www.qar.io
 * <p>
 * 版权所有，侵权必究！
 */

package io.qar.feign.fallback;

import io.qar.commons.tools.utils.Result;
import io.qar.dto.ScheduleJobDTO;
import io.qar.feign.ScheduleJobFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * 回算 FallbackFactory
 */
@Slf4j
@Component
public class ScheduleJobFeignClientFallbackFactory implements FallbackFactory<ScheduleJobFeignClient> {
    @Override
    public ScheduleJobFeignClient create(Throwable cause) {
        return new ScheduleJobFeignClient() {


            @Override
            public Result createResume(ScheduleJobDTO dto) {
                return null;
            }

            @Override
            public Result<ScheduleJobDTO> info(Long id) {
                return null;
            }

            @Override
            public Result save(ScheduleJobDTO dto) {
                return null;
            }

            @Override
            public Result update(ScheduleJobDTO dto) {
                return null;
            }

            @Override
            public Result delete(Long[] ids) {
                return null;
            }

            @Override
            public Result run(Long[] ids) {
                return null;
            }

            @Override
            public Result pause(Long[] ids) {
                return null;
            }

            @Override
            public Result resume(Long[] ids) {
                return null;
            }
        };
    }
}
